package com.sloth.pojo;

/**
 * @author lai
 * @time 2021/10/15 20:13
 */

/**
 * 用在下单页面
 * 用来存放商品对象和与其对应的商品id对应的商品的数量，这个数量是购物车中传的Map集合的数据是一致的
 */
public class ProductAndCountVO {

    private Product product;
    private Integer productCount;

    public ProductAndCountVO(){}
    public ProductAndCountVO(Product product, Integer productCount) {
        this.product = product;
        this.productCount = productCount;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Integer getProductCount() {
        return productCount;
    }

    public void setProductCount(Integer productCount) {
        this.productCount = productCount;
    }

    @Override
    public String toString() {
        return "ProductAndCountVO{" +
                "product=" + product +
                ", productCount=" + productCount +
                '}';
    }
}